/*
 * Copyright 2012 JooKar BV (info@jookar.nl)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.jookar.android.simpleclock.views;

import java.util.Date;

import android.view.Menu;
import android.view.MenuItem;

/**
 * @author Joost A. Bloemsma
 *
 */
public interface IClockView {
	/**
	 * Set the current date/time to display
	 * @param date
	 */
	public void setTime(Date date);

	/**
	 * Show time in 24 hours format
	 * @param fmt24
	 */
	public void set24H(boolean fmt24);
	
	//public void showClockMenu();
	/**
	 * Add clock specific menu items
	 * @param menu the 'clock' submenu 
	 * @return bool
	 */
	public boolean addClockMenu(Menu menu);
	
	/**
	 * Handle a selected menu option
	 * @param item
	 * @return return false to allow normal menu processing. True is event is consumed here. 
	 */
	public boolean onOptionsItemSelected(MenuItem item);
}

